<script type="text/javascript">
function really(d,m) {
	if (confirm(m)) {
		window.location.href='index.php?job=comment&action='+d;
	}
}
</script>
<div class="mainbody">
  <p class="p_nav">[ 查看评论: 
    <!--if:($feedid)-->
    <a href="index.php?job=comment&action=cmlist&id=$feedid">文章内全部</a> |
    <!--/if-->
    <a href="index.php?job=comment&action=cmlist&kind=hidden&id=$feedid">已隐藏</a> | <a href="index.php?job=comment&action=cmlist&kind=display&id=$feedid">已显示</a> ] </p>
  <table border="0"  cellspacing="0" cellpadding="0" style="width:100%;">
    <tr>
      <td valign="top" style="width:150px;"><div class="tableborder">
          <div class="tableheader">评论管理</div>
          <div class="leftmenubody">
            <div class="leftmenuitem">&#8226; <a href="index.php?job=comment">评论管理</a></div>
            <div class="leftmenuitem">&#8226; <a href="index.php?job=comment&action=delallcm"><font color="#FF0000">删除全部</font></a></div>
            <div class="leftmenuitem">&#8226; <a href="###" onclick="really('displayall','你确定要显示全部评论吗?')">显示全部</a></div>
            <div class="leftmenuitem">&#8226; <a href="###" onclick="really('hiddenall','你确定要隐藏全部评论吗?')">隐藏全部</a></div>
          </div>
        </div>
</td>
      <td valign="top" style="width:20px;"></td>
      <td valign="top"><form action="index.php?job=comment" method="POST" name="form">
          <table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td class="rightmainbody"><table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
                <!--if:($action == 'cmlist')-->
                <tr class="tdbheader">
                  <td nowrap width="6%">状态</td>
                  <td nowrap width="10%">作者</td>
                  <td nowrap width="20%">联系方法</td>
                  <td nowrap width="10%">IP</td>
                  <td nowrap width="10%">时间</td>
                  <td nowrap width="34%">内容</td>
                  <td nowrap width="2%"><input name="chkall" value="on" type="checkbox" onClick="checkall(this.form)"></td>
                </tr>
                <!--for:$commentdb $key $comment-->
                <tr class="tablecell">
                  <td nowrap><a href="index.php?job=comment&amp;action=cmstate&amp;cid=$comment[commid]">$comment[state]</a></td>
                  <td nowrap>$comment[author]</td>
                  <td nowrap>$comment[url]</td>
                  <td nowrap><a href="index.php?job=comment&action=cmlist&ip=$comment[ipaddress]" title="查看此IP同一C段发表的评论">$comment[ipaddress]</a></a></td>
                  <td nowrap>$comment[dateline]</td>
                  <td nowrap><a href="index.php?job=comment&amp;action=modcm&amp;cid=$comment[commid]">$comment[content]</a></td>
                  <td nowrap><input type="checkbox" name="comment[]" value="$comment[commid]"></td>
                </tr>
                <!--/for-->
                <input type="hidden" name="feedid" value="$feedid">
                <tr class="tablecell">
                  <td colspan="9" nowrap="nowrap"><div class="records">记录:$tatol</div>
                    <div class="multipage">$multipage</div></td>
                </tr>
                <!--elseif:($action == 'modcm')-->
                <tr class="tdbheader">
                  <td colspan="2"><a name="编辑评论"></a>编辑评论</td>
                </tr>
                <tr class="tablecell">
                  <td>所在文章:</td>
                  <td><a href="index.php?job=article&action=mod&feedid=$comment[feedid]">$comment[title]</a></td>
                </tr>
                <tr class="tablecell">
                  <td>评论作者:</td>
                  <td><input class="formfield" type="text" name="author" size="50" value="$comment[author]"></td>
                </tr>
                <tr class="tablecell">
                  <td>评论作者联系方式:</td>
                  <td><input class="formfield" type="text" name="url" size="50" value="$comment[url]"></td>
                </tr>
                <tr class="tablecell">
                  <td valign="top">评论内容:</td>
                  <td><textarea class="formarea" type="text" name="content" cols="75" rows="20">$comment[content]</textarea></td>
                </tr>
                <input type="hidden" name="commid" value="$comment[commid]">
                <input type="hidden" name="feedid" value="$comment[feedid]">
                <input type="hidden" name="action" value="domodcm">
                <tr class="tablecell">
                  <td colspan="2" align="center"><input type="submit" value="提交" class="formbutton">
                    <input type="reset" value="重置" class="formbutton">
                  </td>
                </tr>
                <!--elseif:($action == 'delallcm')-->
                <tr class="alertheader">
                  <td>删除所有评论</td>
                </tr>
                <tr>
                  <td class="alertbox"><p><b>如果不想显示所有评论,隐藏所有评论即可.</b></p>
                    <p><b>这是危险操作且不可恢复,确实要删除所有评论吗?</b></p>
                    <p>
                      <input type="submit" value="确认" class="formbutton">
                      <input type="hidden" name="action" value="dodelallcm">
                    </p></td>
                </tr>
      <tr>
        <td class="tablebottom" colspan="9"></td>
      </tr>
    </table>
    </td>
    
    </tr>
    
  </table>
  <!--if:(in_array($action, array('cmlist', 'tblist', 'tbsendlog')))-->
  <table cellpadding="0" cellspacing="0" border="0" align="center" width="100%" height="40">
    <tr>
      <td align="right"><select name="do">
          <option value="">= 管理操作 =</option>
          <!--if:($action == 'cmlist' || $action == 'tblist')-->
          <option value="hidden">隐藏选定</option>
          <option value="display">显示选定</option>
          <!--/if-->
          <option value="del">删除选定</option>
        </select>
        <input type="submit" value="确定" class="formbutton">
        <input type="hidden" name="action" value="domore{$action}"></td>
    </tr>
  </table>
  <!--/if-->
   <!--/if-->
  </form>
  </td>
  </tr>
  </table>
</div>
<!--include:footer-->